const app = {
    state: {
        roomStateBackgroundColor: null
    },
    mutations: {
        SET_ROOM_STATE_BACKGROUND_COLOR(state, payload) {
            state.roomStateBackgroundColor = payload;
            localStorage.setItem('roomStateBackgroundColor', JSON.stringify(payload));
        }
    },
    actions: {
        SetRoomStateBackgroundColor: ({ commit }, data) => {
            commit('SET_ROOM_STATE_BACKGROUND_COLOR', data)
        }
    },
}

export default app